package com.zg.common.core.exception;

/**
 * <p>Description: </p>
 *
 * @author zhanfeng.liang
 * @since 2025/5/21 16:49
 */

public interface IException {

    Integer getCode();
    String getMsg();
    default void happen() {
        throw new BusinessException(this);
    }
    default void happen(String suffix) {
        throw new BusinessException(this, suffix);
    }
}
